/**
 * Date:2017年10月18日上午10:27:58
 *
 */

package com.xue.pojo.sys;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * Description: 用户基类 <br/>
 * Date: 2017年10月18日 上午10:27:58 <br/>
 * 
 * @author xuejianxin
 */
public class SysUser implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected String id;
	protected String userid;// 登录账户名称
	protected String username;// 显示的名称
	protected transient String password;// 密码
	protected String enable;
	protected String flag;
	protected Date createDate;
	protected String validateCode;

	// 用户拥有的菜单
	protected Set<String> menuIds;
	
	protected String headimgurl;
	
	public SysUser() {
	}

	public SysUser(SysUser u) {//用于复制自己
		this.id = u.getId();
		this.userid = u.getUserid();// 登录账户名称
		this.username = u.getUsername();// 显示的名称
		this.password = u.getPassword();// 密码
		this.enable = u.getEnable();
		this.flag = u.flag;
		this.createDate = u.getCreateDate();
		this.validateCode = u.getValidateCode();
		this.headimgurl = u.getHeadimgurl();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getValidateCode() {
		return validateCode;
	}

	public void setValidateCode(String validateCode) {
		this.validateCode = validateCode;
	}

	public Set<String> getMenuIds() {
		return menuIds;
	}

	public void setMenuIds(Set<String> menuIds) {
		this.menuIds = menuIds;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

}
